<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>五彩导航</title>
    <style>
        a {
            display: inline-block;
            width: 120px;
            height: 58px;
            color: white;
            text-align: center;
            line-height: 49px;
            text-decoration: none;
        }

        .bg1 {
            background-image: url(/Users/apple/前端/CSS/bg5.png);
        }

        .bg2 {
            background-image: url(/Users/apple/前端/CSS/bg2.png);
        }

        .bg3 {
            background-image: url(/Users/apple/前端/CSS/bg3.png);
        }

        .bg4 {
            background-image: url(/Users/apple/前端/CSS/bg4.png);
        }

        .bg1:hover {
            background-image: url(/Users/apple/前端/CSS/bg11.png);
        }

        .bg2:hover {
            background-image: url(/Users/apple/前端/CSS/bg22.png);
        }

        .bg3:hover {
            background-image: url(/Users/apple/前端/CSS/bg3.jpg);
        }

        .bg4:hover {
            background-image: url(/Users/apple/前端/CSS/bg1.png);
        }
    </style>
</head>

<body>
    <a href="#" class="bg1">
        <div>五彩导航</div>
    </a>
    <a href="#" class="bg2">
        <div>五彩导航</div>
    </a>
    <a href="#" class="bg3">
        <div>五彩导航</div>
    </a>
    <a href="#" class="bg4">
        <div>五彩导航</div>
    </a>


</body>

</html>